package com.balloon.servlet;

import com.balloon.logic.UserBean;
import com.balloon.io.UserDAO;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

/**
 *
 * This class is used for controlling the front and back communcation
 */
public class RegisterServlet1 extends HttpServlet {

    @Override
    public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException {

        try {
            // throughout all the jsp pages
            response.setContentType("text/html; charset=utf-8");									 // later to display the user's first and last names
            response.sendRedirect("register.jsp");
        } catch (Throwable theException) {
            System.out.println(theException);
        }

    }
}
